package com.example.framework.mq.rocketmq.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties("mq.rocketmq")
public class RocketMQProperties {

    @Value("${mq.rocketmq.name-server}")
    private String namesrvAddr;

    private String topic;

    @Value("${mq.rocketmq.producer.group}")
    private String producerGroup;

    @Value("${mq.rocketmq.consumer.group}")
    private String consumerGroup;
}
